<template>
  <div class="hot-buy">
    <div class="hot-buy-item" v-for="item in recommends" >
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div class="hot-buy-title">{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    name: "HotBuyimge",
    props:{
      recommends:{
        type:Array,
        default(){
          return []
        }
      }
    },
    data(){
      return{

      }
    },

  }
</script>

<style scoped>
.hot-buy{
  width: 100%;
  display: flex;
  padding: 10px 0 20px 0px;
  border-bottom: 10px solid #f6f6f6;

}
  .hot-buy-item{
    flex: 1;

    text-align: center;

  }
  .hot-buy-item a img{
    width: 90%;

  }
.hot-buy-item a{
  text-decoration: none;
}
  .hot-buy-title{
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    color: black;
  }
</style>